package com.zbl.zblproject.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/12
 * 仓库货物表
 */
@TableName("zbl_erp_warehouse_item")
public class ErpWarehouseItem {

    @TableField(exist = false)
    private int index;

    @TableId(type = IdType.AUTO)
    private int id;

    /**
     * 商品ID
     */
    private int goodsId;

    /**
     * 货架ID
     */
    private int whId;

    /**
     * 货架数量
     */
    private int stock;

    /**
     * ERP商品
     */
    @TableField(exist = false)
    private ErpGoods erpGood;

    /**
     * ERP仓库
     */
    @TableField(exist = false)
    private ErpWarehouse erpWarehouse;



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getWhId() {
        return whId;
    }

    public void setWhId(int whId) {
        this.whId = whId;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public ErpGoods getErpGood() {
        return erpGood;
    }

    public void setErpGood(ErpGoods erpGood) {
        this.erpGood = erpGood;
    }


    public ErpWarehouse getErpWarehouse() {
        return erpWarehouse;
    }

    public void setErpWarehouse(ErpWarehouse erpWarehouse) {
        this.erpWarehouse = erpWarehouse;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    @Override
    public String toString() {
        return "ErpWarehouseItem{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", whId=" + whId +
                ", stock=" + stock +
                '}';
    }
}
